﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<link href="<%=ResolveUrl("~/Content/Site.css") %>" rel="stylesheet" type="text/css" />
<link href="<%=ResolveUrl("~/Content/start/jquery-ui-1.8.16.custom.css") %>" rel="stylesheet"
    type="text/css" />
<link href="<%=ResolveUrl("~/Content/jquery-calendar.css") %>" rel="stylesheet" type="text/css" />
<script src="<%=ResolveUrl("~/Scripts/jquery-1.4.4.min.js") %>" type="text/javascript"></script>
<script src="<%=ResolveUrl("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
<script src="<%=ResolveUrl("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>
<script src="<%=ResolveUrl("~/Scripts/jquery-ui-1.8.16.all.min.js") %>" type="text/javascript"></script>
<script src="<%=ResolveUrl("~/Scripts/jquery.ui.datepicker-zh-CN.js") %>" type="text/javascript"></script>
<script src="<%=ResolveUrl("~/Scripts/jquery-calendar.js") %>" type="text/javascript"></script>
<script src="<%=ResolveUrl("~/Scripts/Common/Common.js") %>" type="text/javascript"></script>
<script src="<%=ResolveUrl("~/Scripts/Common/Stat.js") %>" type="text/javascript"></script>
<% if (false)
   {%>
<script src="../../Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<%}  %>
<script type="text/javascript">
    var appRoot = '<%=Url.Content("~/") %>';
    var checkAlertMsg = function () {
        var alertMsg = '<%=TempData["alertMsg"] %>';
        if (alertMsg != null && alertMsg != "")
            PopWindow(alertMsg);
        else {
            alertMsg = '<%=ViewData["alertMsg"] %>';
            if (alertMsg != null && alertMsg != "")
                PopWindow(alertMsg);
            else {
                alertMsg = '<%= HttpContext.Current.Session["errorMsg"] %>';
                if (alertMsg != null && alertMsg != "") {
                    PopWindow(alertMsg);
                    <% HttpContext.Current.Session["errorMsg"] = null; %>
                }
            }
        }
    };
    $(function () {
        checkAlertMsg();
    });
</script>
